#include  <stdio.h>
#define N 80
void  MyStrcpy(char *dstStr, char *srcStr);  
int main()
{ 	   			 
	char  a[N], b[N];
	printf("Input a string:");
	gets(a);                      //1	
	MyStrcpy(b, a);               //1
	printf("The copy is:");
	puts(b);                   
	return 0;
} 	   			 
/* 函数功能：用字符指针作为函数参数，实现字符串拷贝 */
void  MyStrcpy(char *dstStr, char *srcStr)
{ 	   			 
	while (*srcStr != '\0')	   //1	
	{ 	   			 
		*dstStr = *srcStr; 	//1
		srcStr++;            	//1
		dstStr++;            	//1
	}
	*dstStr = '\0';         	//1
}